package com.gralves.elasticsearch.utils.util;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author zhouyibin
 * @date 2018/12/18
 * @desc
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Result implements Serializable {
    private Integer code;
    private String msg;
    private Object data;

    public  Result(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }
}
